window.addEvent('domready',function(){
	var slideA=$('slideA');
	var slideB=$('slideB');
	var slideC=$('slideC');
	var slideD=$('slideD');
	var slideE=$('slideE');
	//A开始
	var slideVarA=new Fx.Slide(slideA,{
		//Fx.Slide选项
		mode:'horizontal',		//水平,默认是'vertical'(垂直)
		//Fx选项
		link:'cancel',
		duration:'long',
		transition: 'elastic:out',
		//Fx事件
		onStart:function(){
			$('slideStart').highlight('#EBCC22');
		},
		onCancel:function(){
			$('slideCancel').highlight('#EBCC22');;
		},
		onComplete:function(){
			$('slideComplete').highlight('#EBCC22');;
		}
	}).hide();
	// 注意：.hide和.show方法并不触发事件
	//触发事件
	$('openA').addEvent('click',function(){
		slideVarA.slideIn();
	});
	$('closeA').addEvent('click',function(){
		slideVarA.slideOut();
	});

	//B开始
	var slideVarB=new Fx.Slide(slideB,{
		//Fx.Slide选项
		mode:'vertical',		//默认(垂直)
		//Fx选项
		link:'chain',
		duration:300,
		//transition: 'elastic:out',
		//Fx事件
		onStart:function(){
			$('slideStart').highlight('#EBCC22');
		},
		onCancel:function(){
			$('slideCancel').highlight('#EBCC22');;
		},
		onComplete:function(){
			$('slideComplete').highlight('#EBCC22');;
		}
	}).hide();
	//触发事件
	$('openB').addEvent('click',function(){
		slideVarB.slideIn();
	});
	$('closeB').addEvent('click',function(){
		slideVarB.slideOut();
	});

	//C开始
	var slideVarC=new Fx.Slide(slideC,{
		//Fx.Slide选项
		mode:'vertical',		//默认(垂直)
		//Fx选项
		link:'cancel',
		duration:'long',
		transition: 'cubic:out',
		//Fx事件
		onStart:function(){
			$('slideStart').highlight('#EBCC22');
		},
		onCancel:function(){
			$('slideCancel').highlight('#EBCC22');;
		},
		onComplete:function(){
			$('slideComplete').highlight('#EBCC22');;
		}
	}).hide();
	$('openC').addEvent('click',function(){
		slideVarC.toggle();
	});

	//D开始
	slideD.slide('hide');
	$('openD').addEvent('click',function(){
		slideD.slide('toggle');
	});

	//E开始
	var slideWrap = $('slide_wrap');
	var slideVarE=new Fx.Slide(slideE,{
		//Fx.Slide选项
		mode:'vertical',		//默认(垂直)
		wrapper: slideWrap,
		//Fx选项
		//link:'chain',
		duration:1000,
		transition: 'cubic:out',
		//Fx事件
		onStart:function(){
			$('slideStart').highlight('#EBCC22');
		},
		onCancel:function(){
			$('slideCancel').highlight('#EBCC22');;
		},
		onComplete:function(){
			$('slideComplete').highlight('#EBCC22');;
		}
	}).hide();
	$('openE').addEvent('click',function(){
		slideVarE.toggle();
	});
});